# @Time : 2020/11/13 上午9:59 

# @Author : tanqing

# @File : user_auth.py 

# @Software: PyCharm

user="tanqing"
password="123456"
count=0
while count<3:
    login_user=input("please insert your username: ")
    login_password=input("please insert your password: ")
    if login_user==user and login_password==password:
        print("Login Successful.")
        break
    else:
        print("用户名或密码错误")
        count+=1


# 完成的不错，不过，有个无伤大雅的小瑕疵，前后语言不统一，前面是英文，后面提示有中文，体验不一致
